<?php //pack11class

class AdminProperty_number extends Module {

    public $label="Undefined";
    public $panel="";
    public $propID=0;
    public $select_id=0;

    public function setup() {
        if(!$this->param) return false;
        $property=$this->param;
        $this->label=str_replace("!","",$property->label);
        $this->propID=$property->id;

        $text=new TextInput;

        $text->property_name=$property->system;
        $text->setID("AdminObject_".$property->system);
        $text->events='onkeydown="f(this)" onkeyup="f(this)" onblur="f(this)" onclick="f(this)"';
        if($property->value) $text->setBody($property->value);
        $this->addChild($text);
    }

}
?>
